//
//  BaseTabBarController.m
//  07-拉钩作业-tabBarController
//
//  Created by 王道林 on 16/7/23.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "BaseTabBarController.h"
#import "FindViewController.h"
#import "NewsViewController.h"
#import "PersonViewController.h"
#import "FirstViewController.h"

@interface BaseTabBarController ()

@end

@implementation BaseTabBarController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    FirstViewController *firstVC = [[FirstViewController alloc] init];
    firstVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"首页" image:[UIImage imageNamed:@"Unknown-4"] tag:100];
    NewsViewController *newsVC = [[NewsViewController alloc] init];
    newsVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"消息" image:[UIImage imageNamed:@"Unknown-2"] tag:200];
    FindViewController *findVC = [[FindViewController alloc] init];
    findVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"发现" image:[UIImage imageNamed:@"Unknown-3"] tag:300];
    PersonViewController *personVC = [[PersonViewController alloc] init];
    personVC.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"我" image:[UIImage imageNamed:@"Unknown-5"] tag:400];
    self.viewControllers = @[firstVC, newsVC, findVC, personVC];
     
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
